package com.zxf.appliction.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.zxf.appliction.dao.ReviewMapper;
import com.zxf.appliction.domain.Params;
import com.zxf.appliction.domain.Review;

@Service
// 默认将类中的所有函数纳入事务管理.
@Transactional
public class ReviewService {

	@Autowired
	private ReviewMapper reviewMapper;


	public int insertSelective(Review review) {
		
		return reviewMapper.insertSelective(review);

	}



	public List<Review> getReviewList(Integer artid) {
		return reviewMapper.getReviewList(artid);
	}

	public List<Review> gethotReviewList(Integer i) {
		return reviewMapper.gethotReviewList(i);
	}






	public int getReviewTotle(Params params, Review review) {
		return 0;
	}

}
